import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDateTimeDemo {

    public static void main(String[] args) {

        LocalDate localDate = LocalDate.now();
        LocalTime localTime = LocalTime.now();
        LocalDateTime localDateTime = LocalDateTime.now();

        pln(localDate.toString());
        pln(localTime.toString());
        pln(localDateTime.toString());

        LocalDate date = LocalDate.of(2020, 9, 30);
        LocalTime time = LocalTime.of(14, 15, 10);
        LocalDateTime dateTime1 = LocalDateTime.of(date, time);
        LocalDateTime dateTime2 = LocalDateTime.of(2020, 10, 21, 14, 14,10);

        pln(date.toString());
        pln(time.toString());
        pln(dateTime1.toString());
        pln(dateTime2.toString());

    }

    private static void pln(String input) {
        System.out.println(input);
    }


}
